<?php


class Solution {

    /**
     * @param Integer[] $nums
     * @return Integer
     */
    function findLengthOfLCIS($nums) {
        $cur = 0;
        $max = 0;

        foreach($nums as $i => $num)
        {
            if($i > 0 && $nums[$i-1] >= $num)
            {
                $cur = $i;
            }

            $max = max($max,$i - $cur + 1);
        }
        return $max;
    }
}


?>